package com.silver.weibo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.silver.weibo.entity.Attention;
import com.silver.weibo.entity.dto.MyAttentionDTO;
import com.silver.weibo.entity.vo.MyAttentionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


@Repository
public interface AttentionMapper extends BaseMapper<Attention> {

    public boolean saveAgain(Attention attention);

    public Attention selectOneByAttention(Attention attention);

    public List<MyAttentionVO> selectMyAttentionByUserId(@Param("attentionDTO") MyAttentionDTO myAttentionDTO);
}
